package com.jeesite.modules.dp.entity.chatai;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 聊天包管理Entity
 * @author hancing.com
 * @version 2025-01-12
 */
@Table(name="dp_chatai", alias="a", label="聊天包信息", columns={
		@Column(name="id", attrName="id", label="ID", isPK=true),
		@Column(name="title", attrName="title", label="标题", queryType=QueryType.LIKE),
		@Column(name="count", attrName="count", label="包含数量", comment="包含数量（条）"),
		@Column(name="jiage", attrName="jiage", label="价格"),
		@Column(name="orderno", attrName="orderno", label="排序号"),
		@Column(name="aistatus", attrName="aistatus", label="状态"),
	}, orderBy="a.orderno ASC"
)
public class DpChatai extends DataEntity<DpChatai> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private Long count;		// 包含数量（条）
	private Double jiage;		// 价格
	private Long orderno;		// 排序号
	private String aistatus;
	public DpChatai() {
		this(null);
	}
	
	public DpChatai(String id){
		super(id);
	}
	
	@NotBlank(message="标题不能为空")
	@Size(min=0, max=255, message="标题长度不能超过 255 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@NotNull(message="包含数量不能为空")
	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;
	}
	
	@NotNull(message="价格不能为空")
	public Double getJiage() {
		return jiage;
	}

	public void setJiage(Double jiage) {
		this.jiage = jiage;
	}
	
	@NotNull(message="排序号不能为空")
	public Long getOrderno() {
		return orderno;
	}

	public void setOrderno(Long orderno) {
		this.orderno = orderno;
	}

	public String getAistatus() {
		return aistatus;
	}

	public void setAistatus(String aistatus) {
		this.aistatus = aistatus;
	}
	
}